package top.tangyh.lamp.system.mapper.system;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.tangyh.basic.base.mapper.SuperMapper;
import top.tangyh.lamp.system.entity.system.DefDict;
import top.tangyh.lamp.system.vo.result.system.DefDictItemResultVO;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 字典
 * </p>
 *
 * @author zuihou
 * @date 2021-10-04
 */
@Repository
@InterceptorIgnore(tenantLine = "true", dynamicTableName = "true")
public interface DefDictMapper extends SuperMapper<DefDict> {

    /**
     * 根据父key获取 字典信息列表
     * @param parentKey
     * @return
     */
    List<DefDictItemResultVO> getDictDetailsByParentKey(@Param("parentKey") String parentKey);
}
